<template>
  <div class="shortkey-description upload-file-modal">
    <div class="upload-file-title">
      <p>快捷键</p>
    </div>
    <div class="content">
      <div class="shortkey-item" v-for="item in shortKeyList" :key="item.keyname">
        <p class="shortkey-item__title">{{ item.title }}</p>
        <p class="shortkey-item__key">{{ item.keyname }}</p>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import shortKeyList from '../config/shortkey'
</script>

<style lang="scss" scoped>
.shortkey-description {
  width: 278px;
  top: 76px;
  left: 20px;
  bottom: 70px;
  margin: 0;
  height: auto;
  .upload-file-title {
    padding: 0 12px;
  }
  .content {
    padding: 0 12px 12px;
    .shortkey-item {
      display: flex;
      justify-content: space-between;
      font-size: 12px;
      padding: 8px 0;
      &__title {
        color: #333;
        padding-left: 8px;
      }
      &__key {
        color: #999;
        padding-right: 8px;
      }
    }
  }
}
</style>
